--- import type { GetStaticPaths } from "astro"; import Layout from "../../layouts/Layout.astro"; import { getCollection } from "astro:content"; export const getStaticPaths = (async () => { const entries = await getCollection("blog"); return entries.map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); }) satisfies GetStaticPaths; const { entry } = Astro.props; const { Content } = await entry.render(); const formattedDate = new Date(entry.data.publishedAt).toLocaleDateString( "es-ES", { year: "numeric", month: "long", day: "numeric", weekday: "long", }, ); const schema = { "@context": "https://schema.org", "@type": "BlogPosting", headline: entry.data.title, datePublished: entry.data.publishedAt.toISOString(), author: { "@type": "Person", name: "Ariel Costas Guerrero", }, publisher: { "@type": "Person", name: "Ariel Costas Guerrero", logo: { "@type": "ImageObject", url: "https://www.costas.dev/favicon.png", }, }, }; ---

{entry.data.title}

Publicado el